# coding=utf-8
from typing import Optional
from pydantic import BaseModel


class Eployment1(BaseModel):
    student_id: Optional[int] = None
    job_open_time: Optional[str] = None
    offer_date: Optional[str] = None
    company: Optional[str] = None
    salary: Optional[float] = None  # 修正为float，与数据库模型匹配

    class Config:
        orm_mode = True  # 启用ORM模式，便于与数据库模型转换